* subr.el (event-basic-type): Deal with listy events properly.
authorJim Blandy <jimb@redhat.com>
Thu, 17 Jun 1993 00:16:29 +0000 (00:16 +0000)
committerJim Blandy <jimb@redhat.com>
Thu, 17 Jun 1993 00:16:29 +0000 (00:16 +0000)
lisp/subr.el

index 22662dd068744786428013a4d03ad76ca9e663c4..ad96cc54ee34938d4da78ebc165183be4cca680a 100644 (file)
@@ -285,6 +285,8 @@ The elements of the list may include `meta', `control',
 (defun event-basic-type (event)
   "Returns the basic type of the given event (all modifiers removed).
 The value is an ASCII printing character (not upper case) or a symbol."
+  (if (consp event)
+      (setq event (car event)))
   (if (symbolp event)
       (car (get event 'event-symbol-elements))
     (let ((base (logand event (1- (lsh 1 18)))))